pkg-config,
cmake,
git,
- cargo (>= 0.7.0) <stage2>,
- python-dulwich <!stage2>,
- python-pytoml <!stage2>,
+ cargo (>= 0.7.0) <!stage0>,
+ python-dulwich,
+ python-pytoml,
ca-certificates,
bash-completion,
libhttp-parser-dev,
./debian/cargo-vendor-pack.py
override_dh_auto_build:
-ifneq ($(filter stage2,$(DEB_BUILD_PROFILES)),)
- ln -s `which cargo` $(CURDIR)/cargo-stage0
- # Workaround for https://github.com/rust-lang/cargo/issues/1423
- mv $(DEPSDIR) $(CURDIR)/.deps
-else
+ifneq ($(filter stage0,$(DEB_BUILD_PROFILES)),)
# Bootstrap cargo stage0
./debian/bootstrap.py \
--no-clean \
# Workaround for https://github.com/rust-lang/cargo/issues/1423
mv $(DEPSDIR) $(CURDIR)/.deps
ln -s `find $(CURDIR)/.deps -name 'cargo-*' -type f -executable` $(CURDIR)/cargo-stage0
+else
+ ln -s `which cargo` $(CURDIR)/cargo-stage0
+ # Workaround for https://github.com/rust-lang/cargo/issues/1423
+ mv $(DEPSDIR) $(CURDIR)/.deps
endif
# Configure to build cargo using the just-built stage0
./configure \